<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/beiyong.css"/>
		<style type="text/css">
			
			.ic{
				height: 100%;
				display: flex;
				align-items: center;
				font-family: Muiicons;
			    font-size: 16px;
			    line-height: 1;
			    z-index: 20;
			    padding-top: 10px;
			    padding-bottom: 10px;
			    color: #ffffff;
			}
			.list{
				/*width: 100%;*/
				padding: 10px;
				background:#fff;
				margin:10px;
				border-radius: 10px;;
			}
			.list>div{
				padding: 5px;
			}
			*{
				font-family: "微软雅黑";
				color: #676664;
			}
			.nolistdiv{
				width: 100%;
				text-align: center;
				margin-top: 2em;
				color: #7C7C7C;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav hbg">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">常见问题</h1>
		     <div class="ic mui-icon-right-nav mui-pull-right" onclick="gof1()">去反馈</div>
		</header>
		<div class="mui-content" id="probapp">
		</div>
		<script src="../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mui.min.js"></script>
		<script src="../js/muishow.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/req.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var page = 1;
			window.onload = function(){
				mui.init();
				getproblem();
				
			}
			
			function getproblem(){
				let data = {
					url:"/api/System/queries",
					data:{
						access_token : acctoken()||"",
						page:page,
					}
				}
				ajax(data,function(res){
					console.log("问题列表",res);
					if(res.code == -1){
						mui.toast(res.message);
					}
					if(res.code == 1){
						let str = "";
						if(res.data.length>0){
							for (let i = 0; i < res.data.length; i++) {
								str += '<div class="list" id="listid"><div class="">'+
							    		res.data[i].title+
							    	'</div><div class="">'+
							    		res.data[i].content+
							    	'</div></div>';
							}
							
						}else{
							str = '<div class="nolistdiv">暂无问题</div>'
						}
						g("probapp").innerHTML = str;
					}
				})
			}
				function gof1(){
				mui.openWindow({
				    url: 'feedback.html', 
				    id:'feedback'
				 });
			}
				function gof2(){
				mui.openWindow({
				    url: 'f2.html', 
				    id:'f2'
				 });
			}
		</script>
	</body>

</html>